Class_name = "CTurret"
object_name = "TurretRolandC2a_1_WM_TwinPar"

[COCKPIT_LIMITS]
x= -0.2, 0.2
y= -0.18, 0.09
z= -0.35, 0.35
[END]

VisualImage=0,"graphics/planes/RolC2a/RolC2a_C1_WM1_Low.mgm",1
VisualImage=1,"graphics/planes/RolC2a/RolC2a_C1_WM1.mgm",0

CollisionBody="graphics/planes/RolC2a/RolC2a_C1_WM1.col"

VisualRadius=20.0
ImageAttr=17	//IA_NOCLIP | IA_NOMINPIXELS

mp_site=true

[attach=0]
	position = 0.03, 0.4, 0.0
	object = "LuaScripts/WorldObjects/BotGunnerHCL2.txt"
[end]

[attach=1]
	position = 0.0, 0.0, 0.0
	object = "LuaScripts/WorldObjects/TurretRiffle.txt"
[end]

[attach=2]
	position = 0.0, 0.0, 0.0
	object = "LuaScripts/WorldObjects/TurretCamera.txt"
[end]

TargetingScript = "LuaScripts/WorldObjects/Ballistics/BULLET_GER_792x57_SS.bin"

SoundScript="LuaScripts/RolC2a_T_WM_TwinPar.cfg"

gauges_low_cmd=0,0
gauges_low_cmd=1,1
gauges_low_cmd=2,2
gauges_low_cmd=3,3
gauges_low_cmd=4,4
gauges_low_cmd=5,5
gauges_low_cmd=6,6
gauges_med_cmd=0,7
gauges_med_cmd=1,8
gauges_med_cmd=2,9
gauges_med_cmd=3,10

// transfer_number	= quality group (variable num)
// 100	= med 0 (0)
// 101	= med 0 (1)
// 102	= med 1 (0)
// 103	= med 1 (1)
// 104	= med 2 (0)
// 105	= med 2 (1)

// 000	= low 0 (0)
// 001	= low 0 (1)
// 002	= low 0 (2)
// 003	= low 0 (3)
// 004	= low 1 (0)
// 005	= low 1 (1)
// 006	= low 1 (2)
// 007	= low 1 (3)
// 008	= low 2 (0)
// 009	= low 2 (1)
// 010	= low 2 (2)
// 011	= low 2 (3)

//FetchArgVal= cockpit_arg_num, transfer_number, default_cockpit_arg_val, interpolation_type (clamp - shortest on line scale, wrap - shortest on cyclic scale)

FetchArgVal=1030,000,0,"Smooth_wrap"    // dinamo
FetchArgVal=1152,001,1,"Smooth_clamp"   // magneto
FetchArgVal=1100,002,1,"Smooth_clamp"   // throttle
FetchArgVal=2361,003,0.1,"Smooth_clamp" // tank pressure selectors
FetchArgVal=402,004,0.5,"Smooth_clamp"  // rudder pedals
FetchArgVal=2531,005,0.6,"Smooth_clamp" // manometer
FetchArgVal=9004,008,0,"Smooth_wrap"   // bomb lever
FetchArgVal=12900,009,0,"Smooth_clamp"  // bombholder, photo, radio hide animation
FetchArgVal=2501,100,0,"Smooth_clamp"   // fuel
FetchArgVal=3102,101,0,"Smooth_clamp"   // tachometer

[TurretsPos=1]
	position = 0.0, 0.7, 0.0
	PosMoveArg = 21000

	// Joints in orientation order!!!

	[Joint=0]
		SectorAngleMin = -180.0
		SectorAngleMax = 180.0

		AngularSpeed   = 60.0
		
		AnimationArgMin = 0.0
		AnimationArgMax = 1.0

		AnimationArgNum = 21001

		Point = 0.336285,0.102618,0.0
		Axis = 0.0,1.0,0.0

		IsCycled = true
		IsFullAngle = true
		NextLinkedId = 1

		SoundNumber = 1
	[end]

	[Joint=1]
		SectorAngleMin = -30.0	// real turret angles -45
		SectorAngleMax = 30.0	// real turret angles +0	
		
		AngularSpeed   = 120.0

		AnimationArgMin = 0.416
		AnimationArgMax = 0.584

		AnimationArgNum = 21006

		Point = 0.1119060,0.192723,0.0
		Axis = 0.0, 1.0, 0.0

		IsFullAngle = false
		DependFromPrevious = true
		PrevLinkedId = 0

		SoundNumber = 2
	[end]

	[Joint=2]
		SectorAngleMin = -45
		SectorAngleMax = 45

		AngularSpeed   = 120.0

		AnimationArgMin = 0.375
		AnimationArgMax = 0.625

		AnimationArgNum = 21007

		Point = 0,0,0
		Axis  = 0.0, 0.0, 1.0

		IsFullAngle = true

		SoundNumber = 2
	[end]

	[GunAnimation=0]
		FireArg = 9040
	[end]

	[GunAnimation=1]
		FireArg = 9050
	[end]

	FireLightArg=60220

	relativeBotStand = -0.515, -0.14, -0.12
	relativeBotSit = -0.33, -0.20, 0.02
	relativeBotDead = -0.39, -0.20, 0.02
	TransitionStandPower = 1
	TransitionDeadPower = 1

	BotAttachJointId = 0
	BotFirstAnimJointId = 2 
	BotSecondAnimJointId = 1

	SightPosition = 0.0, 1.3, 0.0

	defaultDirection = -0.2, 0.2, -0.2

	CamDisplacement = -0.413471, 0.1085, 0.006
[end]

[TurretsGun=5]

	Displacement = 0.432442, 0.02364, 0.0

	GunType = "LuaScripts/WorldObjects/Weapons/Parabellum.txt"

	ReLoadingStagesTime = 3.0, 3.0, 2.0, 1.5
 
	MaxRoundsInMagazine = 250
	RoundsInMagazine = 250
	MaxReservedMagazines = 1
	ReservedMagazines = 1
	MaxMisFiresInMagazine = 2
	AmountRoundsWithOneTracer = 3

	GunSoundsIdx = 1
	ShotSoundType = 1

	ReservedMagazinesArgIdx = 9181
	FlashAnimationArgIdx = 9040
	TriggerPositionArgIdx = 9000
	AmmunitionMovingArgIdx = 9048
	RoundsInMagazineArgIdx = 9046
	HideAmmunitionArgIdx = 9045
	ReLoadingArgIdx = 9044
	AzimuthDeviationArgIdx = 9012
	ElevationDeviationArgIdx = 9013
	DrawAnimationArgIdx = 0, 9016
	DrawAnimationArgIdx = 2, 9017

	BarrelTemperatureDecreaseCorrectionData = 1.0, 4.0, 300.0
	BulletDispertionAngleCorrectionCoefficient = 1.0

	Deviation = 5.76, 2.16, 0.9, 0.02, 0.1, 0.2
	ParallaxDistance = 150.0

	NumOfAnimations = 4

	BushCoord = -0.084292, -0.01, 0.0
	BushSpeed = 1.0, -1.0, 0.0

	BushConfig = "LuaScripts/WorldObjects/Trash/BatchTrashBush.txt"

	[bullet=0]
		Config = "LuaScripts/WorldObjects/Ballistics/BULLET_GER_792x57_SS.txt"
	[end]

	[bullet=1]
		Config = "LuaScripts/WorldObjects/Ballistics/BULLET_GER_792x57_SMK_AP.txt"
	[end]

	SoundNumber = 1

[end]

[TurretsGun=6]

	Displacement = 0.54944, 0.02364, -0.125958

	GunType = "LuaScripts/WorldObjects/Weapons/Parabellum.txt"

	ReLoadingStagesTime = 3.0, 3.0, 2.0, 1.5
 
	MaxRoundsInMagazine = 250
	RoundsInMagazine = 250
	MaxReservedMagazines = 1
	ReservedMagazines = 1
	MaxMisFiresInMagazine = 2
	AmountRoundsWithOneTracer = 3

	GunSoundsIdx = 2
	ShotSoundType = 1

	ReservedMagazinesArgIdx = 9182
	FlashAnimationArgIdx = 9050
	TriggerPositionArgIdx = 9001
	AmmunitionMovingArgIdx = 9058
	RoundsInMagazineArgIdx = 9056
	HideAmmunitionArgIdx = 9055
	ReLoadingArgIdx = 9054
	AzimuthDeviationArgIdx = 9022
	ElevationDeviationArgIdx = 9023
	DrawAnimationArgIdx = 0, 9026
	DrawAnimationArgIdx = 2, 9027

	BarrelTemperatureDecreaseCorrectionData = 1.0, 4.0, 300.0
	BulletDispertionAngleCorrectionCoefficient = 1.0

	Deviation = 5.76, 2.16, 0.9, 0.02, 0.1, 0.2
	ParallaxDistance = 150.0
	
	NumOfAnimations = 4

	BushCoord = 0.032706, -0.01, -0.125958
	BushSpeed = 1.0, -1.0, 0.0

	BushConfig = "LuaScripts/WorldObjects/Trash/BatchTrashBush.txt"

	[bullet=0]
		Config = "LuaScripts/WorldObjects/Ballistics/BULLET_GER_792x57_SS.txt"
	[end]

	[bullet=1]
		Config = "LuaScripts/WorldObjects/Ballistics/BULLET_GER_792x57_SMK_AP.txt"
	[end]

	SoundNumber = 2

[end]

SightPos = 0.0, 1.3, 0.0
PositionChangeTime = 0.5
ReloadDelay = 0.3
ShootOutSoundID = 1

BotRotaionValueZ = 0	//-2.0
LegsParameter = 0

BotMaxSecondAngle = 30.0
BotMinSecondAngle = -30.0

BotMaxFirstAngle  = 45.0
BotMinFirstAngle  = -45.0 

FirstToSecondInterp = 0.0

TotalSectorLimits = 5

//   ,         
SectorLimits0 = -180.0, -155.0, +15.0, +90.0
SectorLimits1 = -155.0, -145.0, -20.0, +90.0
SectorLimits2 = -10.0,  +20.0,  -40.0, +90.0
SectorLimits3 = +155.0, +165.0, -20.0, +90.0
SectorLimits4 = +165.0, +180.0, +15.0, +90.0

// Damage

Armor=0 	
LifeRate=500 	
LifeRateFg=5000 
Firing=0.0 
